SetMenuItemTextEncoding
NEW WITH THE APPEARANCE MANAGER
Sets the text encoding for a menu item's text.
pascal OSErr SetMenuItemTextEncoding ( MenuHandle inMenu, SInt16 inItem, TextEncoding inScriptID);
inMenu
- A handle to the menu structure of the menu item whose text encoding you wish to set.
inItem
- An integer representing the item number of the menu item whose text encoding you wish to set.
inScriptID
- The script code that corresponds to the text encoding you wish to set.
- function result
- A result code; see "Result Codes".
DISCUSSION
To set the text encoding for a menu item's text, call theSetMenuItemTextEncoding
function instead ofSetItemCmd
. If a menu item has a command code of 0x1C whenSetMenuItemTextEncoding
is called, the values in the command and icon fields of the menu resource are cleared and replaced with the value in theinScriptID
parameter ofSetMenuItemTextEncoding
.SEE ALSO
"Appearance Manager Gestalt Selector Constants".